public class JIDLArray implements java.io.Serializable
java.lang.Object
|
+--com.idl.javaidl.JIDLArray
java.io.Serializable
The JIDLArray class wraps a Java array as an object usable by the Java-IDL Export bridge.
Wraps arrays of type boolean, byte, char, short, int, long, float, double, String, and JIDLObjectI.
When retrieving the object, the calling code must cast the Object wrapped by JIDLArray to the proper * array type. For example:
int[] myNativeArray = ...;
// Create a wrapped array so it may be used in the bridge
JIDLArray arr = new JIDLArray(myNativeArray)
// ... do something in the bridge to modify the array ...
// Now cast the resultant array to the expected type
int[] newNative = (int[])arr.arrayValue();
JIDLArray(java.lang.Object arr)
Construct a JIDLArray from a native array
arrayValue()
Get the native array that is wrapped by this object
getClassName()
Get the classname of the wrapped array.
getValue()
Get the native array that is wrapped by this object
setValue(JIDLArray arr)
Set the native array that is wrapped by this object
setValue(java.lang.Object arr)
Set the native array that is wrapped by this object
toString()
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(long, int), wait(long, int), wait(long, int)
public JIDLArray(java.lang.Object arr)
Construct a JIDLArray from a native array
arr - the native array to wrap for use in the export bridge (Must be an array of type boolean, byte, char, short, int, long, float, double, String, or JIDLObjectI.)
public java.lang.Object arrayValue()
Get the native array that is wrapped by this object
the native array to wrap for use in the export bridge returned as an object. The array will be of type boolean, byte, char, short, int, long, float, double, String, or JIDLObjectI.
public java.lang.String getClassName()
Get the classname of the wrapped array.
The classname of the wrapped array.
public java.lang.Object getValue()
Get the native array that is wrapped by this object
the native array to wrap for use in the export bridge returned as an object. The array will be of type boolean, byte, char, short, int, long, float, double, String, or JIDLObjectI.
public void setValue(com.idl.javaidl.JIDLArray arr)
Set the native array that is wrapped by this object
arr - the native array to wrap for use in the export bridge (Must be an array of type boolean, byte, char, short, int, long, float, double, String, or JIDLObjectI.)
public void setValue(java.lang.Object arr)
Set the native array that is wrapped by this object
arr - the native array to wrap for use in the export bridge (Must be an array of type boolean, byte, char, short, int, long, float, double, String, or JIDLObjectI.)
public java.lang.String toString()
toString in class Object